<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: lkk
  Date: 2014/12/8
  Time: 21:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<div class="col-sm-9">
    <div class="row">
        <div class="col-lg-12">
            <div class="page-header">
                <h1>我的算法</h1>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <%@ include file="/WEB-INF/jsp/public/pageinfo.jspf" %>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="text-muted bootstrap-admin-box-title">我上传的算法</div>
                </div>
                <div class="bootstrap-admin-panel-content">
                    <table class="table bootstrap-admin-table-with-actions">
                        <thead>
                        <tr>
                            <th>算法名称</th>
                            <th>发表时间</th>
                            <th>下载量</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <s:iterator value="recordList">
                            <tr>
                                <td>
                                    <s:a action="article_details?id=%{id}">
                                        ${title}
                                    </s:a>
                                </td>
                                <td><s:date name="createTime" format="yyyy/MM/dd hh:mm:ss"/></td>
                                <td>${downloadCount}</td>
                                <td class="actions">
                                    <s:a cssClass="btn btn-sm btn-danger" onclick="return confirm('确定要删除该算法么？')"
                                         action="user_articleDelete?id=%{id}">
                                        <i class="glyphicon glyphicon-remove glyphicon-white"></i> 删除
                                    </s:a>
                                </td>
                            </tr>
                        </s:iterator>
                        </tbody>
                    </table>

                    <!--pager start-->
                    <%@ include file="/WEB-INF/jsp/public/pageView.jspf" %>
                    <s:form action="user_articleList" cssstyle="display:none"></s:form>
                    <!--pager end-->
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
